package Aaa;

import java.util.Locale;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class A {
public static void main(String[] args) {
		
		ApplicationContext context 
			= new ClassPathXmlApplicationContext("classpath*:/config/spring/spring-wb.xml");

		String name = context.getMessage("10010015000000001", 
				new Object[] { 28,"http://www.yiibai.com" }, Locale.CHINA);

		System.out.println("Customer name (English) : " + name);

		String namechinese = context.getMessage("XZQH", 
				new Object[] {29, "http://www.yiibai.com" }, 
                                        Locale.CHINA);

		System.out.println("Customer name (Chinese) : " + namechinese);

	}
}
